package com.fcscs.cservice.client.common.model.folio;

import com.fcscs.core.common.MainEnums.HasDisplayString;
import com.fcscs.core.gwt.common.CoreConstants;
import com.fcscs.cservice.client.common.CServiceConstants;
import com.fcscs.share.gwt.common.ShareGWTConstants;

public enum FolioSearchItemsGWTEnum implements HasDisplayString {
	NAME(CoreConstants.CORE_CONSTANTS.name(), 
		FolioSearchItemsEnum.NAME, 
		FolioSearchItemsEnum.NAME.getIndex()),
	RESERVATION_STATUS(CServiceConstants.CSERVICE_CONSTANTS.reservationStatus(), 
		FolioSearchItemsEnum.RESERVATION_STATUS,
		FolioSearchItemsEnum.RESERVATION_STATUS.getIndex()),
	ROOM_NO(ShareGWTConstants.SHARE_GWT_CONSTANTS.roomNumber(), 
		FolioSearchItemsEnum.ROOM_NO, 
		FolioSearchItemsEnum.ROOM_NO.getIndex()),
	ARRIVAL_DATE(ShareGWTConstants.SHARE_GWT_CONSTANTS.arrivalDate(), 
		FolioSearchItemsEnum.ARRIVAL_DATE, 
		FolioSearchItemsEnum.ARRIVAL_DATE.getIndex()),
	DEPARTUAL_DATE(ShareGWTConstants.SHARE_GWT_CONSTANTS.departureDate(), 
		FolioSearchItemsEnum.DEPARTUAL_DATE, 
		FolioSearchItemsEnum.DEPARTUAL_DATE.getIndex()),
	;

	private String displayStr;
	private FolioSearchItemsEnum itemEnum;
	private int index;
	
	private FolioSearchItemsGWTEnum(String displayStr,
			FolioSearchItemsEnum itemEnum, int index) {
		this.displayStr = displayStr;
		this.itemEnum = itemEnum;
		this.index = index;
	}

	@Override
	public String getDisplayStr() {
		return displayStr;
	}

	public FolioSearchItemsEnum getItemEnum() {
		return itemEnum;
	}

	public int getIndex() {
		return index;
	}
}
